﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>si.countdown</title>
</head>
<body>
    <div id="div"></div>

    <link rel="import" href="../si.base/package/si.base.html" />
    <link rel="import" href="../si.countdown/package/si.countdown.html" />

    <script>
        $(document).ready(function () {
            si.countdown.set($("#div"), 20, "{val}s", 1000, function () { alert(1) });
            setTimeout(function () {
                si.countdown.set($("#div"), 30, "{val}s", 1000, function () { alert(2) });
            }, 5000)
        });
    </script>
</body>
</html>